﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%var list = v.data("list") as List<Document>; %>

<%if (list.Count > 0){ %>
<% foreach (var row in list) { %>
<div class="infolist" title="<%=row.title %> - <%=row.addtime %>" onselectstart="return false;" <%if (bllPowerGroupService.powercheck("article", "docedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('<%=row.title %>-_{article_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" <%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="articleselectinfoid" value="<%=row.Id %>"></td>
			<td width="7%">
				<input type="hidden" name="articleinfoid" id="articleinfoid" value="<%=row.Id %>">
				<input type="text" name="articlepid" size="2" value="<%=row.pid %>" class="infoInput" onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}">
			</td>
			<td width="7%"><%=row.Id %></td>
			<td width="40%" id="left" class="padding-left3">
                <%if(row.islink ==0){ %>
				<a target="_blank" class="infolink04" alt="<%=row.title %>" href="<%=row.readlink %>"><%=row.title.CutStrings(46) %></a>
				<%}else{ %>
				<%=row.title.CutStrings(46) %>
				<%} %>
			</td>
			<td width="10%"><%=row.typename.CutStrings(10) %></td>
			<td width="11%" id="infotype">
				<table>
					<tr>
						<td><%if(row.pic !=""){ %><span class="pic_ok" title="_{article_pic_ok}"></span><%}else{ %><span class="pic_no" title="_{article_pic_no}"></span><%} %></td>
						<td><%if(row.islink ==1){ %><span class="iswindow_ok" title="_{article_audit_ok}"></span><%}else{ %><span class="iswindow_no" title="_{article_audit_no}"></span><%} %></td>
						<td><%if(row.isorder==1){ %><span class="order_ok" title="_{article_audit_ok}"></span><%}else{ %><span class="order_no" title="_{article_audit_no}"></span><%} %></td>
						<td><%if(row.isclass==1){ %><span class="audit_ok" title="_{article_audit_ok}"></span><%}else{ %><span class="audit_no" title="_{article_audit_no}"></span><%} %></td>
					</tr>
				</table>
			</td>
			<td width="20%" id="infotype">
                <%if (bllPowerGroupService.powercheck("article", "docedit", modelpowergroup)) { %>
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('<%=row.title %>-_{article_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleEdit,row.Id) %>?type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="<%=row.title %>"_{article_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
						<td class="padding-left3"><a class="setedit" onclick="javascript:parent.onbotton('<%=row.title %>-_{setcopy_botton}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.ArticleController().ArticleEdit,row.Id) %>?type=add&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'articleeditbotton<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articleeditbotton<%=row.Id %>" href="#body" title="<%=row.title %>_{setcopy_botton}" hidefocus="true">_{setcopy_botton}</a></td>
                        <%if (bllPowerGroupService.powercheck("article", "acmessagelist", modelpowergroup) && row.ismess == 1) { %>
						<td class="padding-left3"><a class="setedit2" onclick="javascript:parent.onbotton('_{botton_view_message}','#{view}?loadfun=acmessagelist&did=<%=row.Id %>&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'articlemessage<%=row.Id %>',self.frameElement.getAttribute('name'));" id="articlemessage<%=row.Id %>" href="#body" title="_{botton_view_message}" hidefocus="true">_{botton_view_message}</a></td>
						<%} %>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>